package com.qiqidream.admin.system.model.vo;

import com.qiqidream.admin.common.enums.MenuType;
import com.qiqidream.admin.common.utils.tree.DataTree;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 菜单视图层
 * @author QiQiDream
 * @since 2019/12/2 9:11
 */
@Data
public class DepartmentVo implements DataTree<DepartmentVo> {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "父级id")
    private Long parentId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "是否启用")
    private Boolean enabled;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @ApiModelProperty(value = "子菜单")
    List<DepartmentVo> children;
}
